Estoy creando un almacén de datos usando la API de CKAN, pero CKAN ignora las propiedades de la label y la description :
const fields = [ { id: "id_unique", type: "text", label: "label of id_unique", // CKAN ignoring this property description: "description of id_unique", // CKAN ignoring this property }, { id: "latitude", type: "text", label: "label of latitude", // CKAN ignoring this property description: "description of latitude", // CKAN ignoring this property }, { id: "longitude", type: "text", label: "label of longitude", // CKAN ignoring this property description: "description of longitude", // CKAN ignoring this property }, ] await clientAction('datastore_create', { package_id, resource_id, force, fields, records, primary_key, })Resultado:
¿Cómo puedo enviar las propiedades "etiqueta" y "descripción"?
Descubrí la solución. Se especifica en un campo de info :
const fields = [ { id: "id_unique", type: "text", info: { notes: "description of id_unique", label: "label of id_unique", } }, { id: "latitude", type: "text", info: { notes: "description of latitude", label: "label of latitude", } }, { id: "longitude", type: "text", info: { notes: "description of longitude", label: "label of longitude", } }, ]